package poketdd.service;

import poketdd.bean.Pokemon;
import poketdd.repository.PokemonRepository;

public class UltraPokedex implements Pokedex {

	private PokemonRepository pokemonRepository;

	public UltraPokedex(PokemonRepository pokemonRepository) {
		this.pokemonRepository = pokemonRepository;
	}

	public void registrarPokemon(Pokemon pokemon) {
		pokemonRepository.registrarPokemon(pokemon);
	}

	public Pokemon buscarPokemon(String codigo) {
		return pokemonRepository.buscarPokemon(codigo);
	}

}
